package com.demo.service;


import org.springframework.cloud.netflix.feign.FeignClient;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

@FeignClient(name = "DEMO-PROVIDER", fallback = FeginClient.class)
public interface FeginClient {

    @RequestMapping(value = "/getText", method = RequestMethod.GET)
    String getText();

}
